package com.zabra.zl.ui.profit.model;

import com.zabra.zl.data.ProfitBean;
import com.zabra.zl.data.SimpleBean;
import com.zabra.zl.net.RetrofitClient;
import com.zabra.zl.ui.profit.contract.ProfitContract;

import retrofit2.Call;

public class ProfitModel implements ProfitContract.Model {
    @Override
    public Call<ProfitBean> getData(int orderid) {
        return RetrofitClient.getInstance().getApi().getProfitData(orderid);
    }

    @Override
    public Call<SimpleBean> getSubmitData(int orderid, String money) {
        return RetrofitClient.getInstance().getApi().getSubmitProfitData(orderid, money);
    }
}
